
import 'package:flutter/material.dart';
import 'package:flutterroom/pages/home/widgets/common_image.dart';
import 'index_navgator_item.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';


class IndexNavigator extends StatelessWidget {
  const IndexNavigator({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      // height: ScreenUtil().setHeight(50),
      padding: EdgeInsets.only(top:10,bottom:10),
       width: ScreenUtil().setWidth(750),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: indexNavigatorItemList.map((item)=>InkWell(
          onTap: (){
           item.onTap(context);
          },
          child: Column(
            children: <Widget>[
              CommonImage(item.imageUri,width: 47.5),
              Text(item.title,style: TextStyle(fontWeight: FontWeight.w500))
            ],
          ),
        )).toList(),
      ),
    );
  }
}